package com.fa4j.system.settings.model;


import com.fa4j.common.base.model.AbstractCmd;
import com.fa4j.common.base.model.CommonState;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "系统设置创建参数")
public class SettingsCreateCmd extends AbstractCmd {

    @NotBlank
    @Size(max = 64)
    @Schema(description = "名称")
    private String name;

    @NotBlank
    @Size(max = 64)
    @Schema(description = "编码")
    private String code;

    @NotNull
    @Schema(description = "状态")
    private CommonState state;

    @NotBlank
    @Schema(description = "设置定义")
    private String settingsSchema;

}
